package com.hermit.alaskagulfprovider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author hermit
 * @data 2021/6/11
 */
@RestController
public class ProviderController {

    @GetMapping("/provider-index")
    public String index() {
        Date date = new Date();
        String showText = "Hello Provider \n" + date;
        System.out.println(showText);
        return showText;
    }

    @GetMapping("/test-openfeign")
    public String testOpenFeign() {
        return new String("测试成功");
    }
}
